import { createApp } from 'vue';
import App from './App.vue';
import { setupI18n } from './locales';
import { setupDayjs, setupIconifyOffline, setupNProgress, setupRootResize } from './plugins';
import './plugins/assets';
import { setupStore } from './store';

async function setupApp() {

  setupNProgress();

  setupIconifyOffline();

  setupDayjs();

  setupRootResize();


  const app = createApp(App);

  setupStore(app);


  setupI18n(app);

  app.mount('#app');
  window.postMessage({ payload: 'removeLoading' });
}

setupApp();
